package com.szgr.baoyin.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;

import com.szgr.baoyin.R;
import com.szgr.baoyin.adapter.FinanceListAdapter;

/**
 * 金融页
 */
public class FinanceActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setContentView(R.layout.activity_finance);
        super.onCreate(savedInstanceState);
    }

    @Override
    public void initActionBar() {
        actionBarTitle.setText("金融");
    }

    @Override
    public void initView() {
        findViewById(R.id.finance_rongzi).setOnClickListener(this);
        findViewById(R.id.finance_duyin).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.action_bar_left:
                finish();
                break;
            case R.id.finance_rongzi:
                startActivity(new Intent(this,NewFinanceActivity.class));
                break;
            case R.id.finance_duyin:
                startActivity(new Intent(this,PrivilegeActivity.class));
                break;
        }
    }
}
